package com.vpen.controller;

import com.vpen.model.query.LicenseQuery;
import com.vpen.model.resp.LicenseInfoRespDTO;
import com.vpen.service.LicenseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 描述
 *
 * @author 韦鹏
 * @date 2024/11/17 11:11
 */
@RestController
@RequestMapping( "/api/license")
public class LicenseGenerateController {

    @Autowired
    private LicenseService licenseService;

    @PostMapping("/genCode")
    private LicenseInfoRespDTO genCode(@RequestBody LicenseQuery query){

        return licenseService.genCode(query);
    }

    @PostMapping("/genCodeZip")
    private void genCodeZip(@RequestBody LicenseQuery query){
        licenseService.genCodeZip(query);
    }


    @GetMapping("/test")
    public String test() {
        return "Hello, World!";
    }
    //123456
    // 这个是神吗 hzeshifs  asfa
    // 我这里测试啊
}
